<!DOCTYPE html>
<html>
<head>
  <title>Coffee2go</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
</head>
<body>
	<div id="wrapper">
		<div id="header">
			<ul>
				<li><%= link_to("Home", :controller => :home, :action => :index ) %></li>
				<li><%= link_to("Infomation", :controller => :news, :action => :index) %></li>
				<li><%= link_to("Products", :controller => :produces, :action => :index ) %></li>
				<li><%= link_to("Contact us", '#' ) %></li>
				<a class = "account">
				<% if !session[:user] %>
					<li><%= link_to("Login", {:controller => :users, :action => :login}) %></li>
					<li><%= link_to("Register", {:controller => :users, :action => :signup}) %></li>
				<% else %>
					<li><%= link_to("My account", {:controller => :users, :action => :edit}) %></li>
					<li><%= link_to("Logout", {:controller => :users, :action => :logout} ) %><li>
				<% end %>
				</a>
			</ul>
		</div>

		<div id="mainContent">
			<%= yield %>
		</div>
	</div>
	<div id="footer">
		<div class="wrapper_footer">
			<p>&copy; 2013 Nguyen Dang Thang, All Rights Reserved </p>
		</div>
	</div>

</body>
</html>
